package com.hydra.wiki.graph.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.neo4j.ogm.annotation.*;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@RelationshipEntity(type = "DIRECTED")
public class EntityRel {

    @GraphId
    private Long id;

    private String name;

    @StartNode
    private Entity startEntity;

    @EndNode
    private Entity endEntity;

}